Skip to content

Instantly share code, notes, and snippets.

@phansch
phansch / yardoc_cheatsheet.md
Last active November 19, 2026 06:04 — forked from chetan/yardoc_cheatsheet.md
Improved YARD cheatsheet
@caelinsutch
caelinsutch / after-dark.png
Last active November 19, 2026 05:59
Tinting iOS Safari's toolbar to match a modal scrim
after-dark.png
@fanlushuai
fanlushuai / fuckAD.js
Last active November 19, 2026 05:41
红果短剧自动跳过广告,流畅看剧
function getRotation() {
//1竖屏 2横屏
importPackage(android.content);
return context.getResources().getConfiguration().orientation;
}
function getScreenHW() {
// console.log(getRotation());
// 正常的手机,高度,是大于宽度的。但是,device.width,device.height,函数,有时候是会获取错误的。
// 强行扭正。
@orepras
orepras / bahasa-indonesia-plain.md
Last active November 19, 2026 05:41
An agent skill for writing in Bahasa Indonesia plain style and RASA framework

name: bahasa-indonesia-plain description: > Tulis dan edit teks antarmuka, panduan, dokumentasi, atau konten apa pun dalam Bahasa Indonesia yang lugas, inklusif, dan ramah semua orang, menggunakan prinsip bahasa polos (plain language), EYD, desain trauma-informed, aksesibilitas kognitif, dan framework RASA (Ritmis, Akurat, Sarat Makna, Alami) sebagai lensa evaluasi kualitas tulisan. Gunakan skill ini saat menulis UI copy, microcopy, laporan, panduan pengguna, komunikasi layanan publik, atau teks apa pun yang harus dipahami siapa saja sejak pertama kali membacanya.

@changeroa
changeroa / README.md
Created November 19, 2026 00:15
Herdr orchestrator skill and Codex harness runtime

Herdr orchestrator and Codex harness

SKILL.md contains the orchestration skill. harness.patch contains the harness source, plugin metadata, hooks, installer and tests from changeroa/harness-runtime commit db05865d4b19087401bb71ae380e688019da955d.

To restore the harness from a clone of this Gist, run:

mkdir harness-runtime
(cd harness-runtime && git apply ../harness.patch && npm test)
@jboner
jboner / latency.txt
Last active November 19, 2026 05:37
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012 except when noted)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.